package com.guozy.example.rpc;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        RpcProxyClient rpcProxyClient = new RpcProxyClient();
        IOrderService orderService = rpcProxyClient.clientProxy(IOrderService.class, "localhost", 8080);

        System.out.println(orderService.queryOrderList());
        System.out.println(orderService.queryOrderInfoById("11"));

        ITestService testService = rpcProxyClient.clientProxy(ITestService.class, "localhost", 8080);
        System.out.println(testService.sayHello());
        System.out.println( "Hello World!" );
    }
}
